package com.cecdat.sys.mapper;

import com.cecdat.sys.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author cecdata
 * @since 2019-06-19
 */
public interface UserMapper extends BaseMapper<User> {

    /**
     * 获取当前用户所拥有的权限
     *
     * @param user
     * @return
     */
    List<String> getUserPermission(User user);
}
